package xyz.luhui1hao.springboottest.service;

import xyz.luhui1hao.springboottest.domain.User;

import java.util.List;

public interface UserService {

    /**
     * 插入User
     * @param user
     * @return
     */
    int insertUser(User user);

    /**
     * 根据名字找用户
     * @param name
     * @return
     */
    List<User> findUserByName(String name);
}
